

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Search Bar with Keyboard Effect</title>
<style>
  
  input[type="text"]::-webkit-keyboard-indicator {
    display: none;
  }

  
  .search-container {
    position: relative;
    width: 300px;
    height: 40px;
    margin: 20px;
  }

 
  .search-input {
    width: 100%;
    height: 100%;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    outline: none;
    transition: all 0.3s ease;
  }

 
  .keyboard-effect {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ccc;
    border-radius: 4px;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
  }

 
  .search-input:focus ~ .keyboard-effect {
    opacity: 1;
    transform: scale(1);
  }
</style>
</head>
<body>

<div class="search-container">
  <input type="text" class="search-input" placeholder="Search...">
  <div class="keyboard-effect"></div>
</div>


</script>

</body>
</html>
